package com.gzq.offer;

import com.gzq.leet.commen.struct.TreeNode;

import java.util.LinkedList;
import java.util.Queue;

public class No48SerializeAndDeserializeTree {
    // Encodes a tree to a single string.
    public String serialize(TreeNode root) {
        StringBuilder buffer=new StringBuilder();
        buffer.append("[");
        Queue<TreeNode> queue=new LinkedList<>();
        if(root==null){
            buffer.append("]");
            return buffer.toString();
        }
        return null;
    }

    // Decodes your encoded data to tree.
    public TreeNode deserialize(String data) {
        return null;
    }

    public static void main(String[] args){
        No48SerializeAndDeserializeTree me=new No48SerializeAndDeserializeTree();
        System.out.println(me.serialize(null));
    }
}
